﻿<%@ Page Language="C#" MasterPageFile="~/Front6.Master" AutoEventWireup="true" CodeBehind="ManageWorktime3.aspx.cs" Inherits="HRProject.Worktime.ManageWorktime3" Title="Untitled Page" %>
<%@ Import Namespace="HRProject.Code.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="IncludePlaceHolder" runat="server">
    <link type="text/css" href="/css/worktime.css" rel="Stylesheet"/>
    <script type="text/javascript" language="javascript" src="/js/worktime3.js"></script>
    <style type="text/css">
        /* tooltip */
        div.tooltip 
        {
	        outline:none;
	        float:left;
        }
        div.tooltip strong
        {
	        line-height:30px;
	        color:Blue;
	        font-size:large;
        }
        div.tooltip:hover
        {
	        text-decoration:none;
        }
        div.tooltip .tooltip-content
        {
	        z-index:10;
	        display:none;
	        padding:14px 20px;
	        margin-left:15px;
	        line-height:16px;
	        float:left;
	        text-align:left;
        }
        div.tooltip:hover .tooltip-content
        {
	        display:inline;
	        position:absolute;
	        color:#111;
	        border:1px solid #DCA;
	        background:#fffAF0;
        }
        .callout
        {
	        z-index:20;
	        position:absolute;
	        top:10px;
	        border:0;
	        left:-12px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitleIconPlaceHolder" runat="server">
    <img alt="" src="/image/layout/icon/WorktimeIcon.png" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleNamePlaceHolder" runat="server">
    <%= ContentProvider.GetString("MonthlyWorktime") %>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainPanelPlaceHolder" runat="server">
    <br />
    <% int month = DateTime.Now.Month;
       int year = DateTime.Now.Year; %>
    <%= ContentProvider.GetString("Month") %>:
    <input type="button" value="&lt;" onclick="previousMonth();"/>
    <input type="text" name="tbxMonth" value="<%= month %>" class="dateInput"/>
    <input type="hidden" id="hdfMonth" name="month" value="<%= month %>"/>
    <input type="hidden" id="hdfYear" name="year" value="<%= year %>"/>
    <input type="hidden" id="hdfJobTitleId" name="jobTitleId" value=""/>
    <input type="button" value="&gt;" onclick="nextMonth();"/>
    <%= ContentProvider.GetString("Year") %>: 
    <input type="button" value="&lt;&lt;" onclick="previousYear();"/>
    <input type="text" name="tbxYear" value="<%= year %>" class="dateInput"/>
    <input type="button" value="&gt;&gt;" onclick="nextYear();"/>
    <input type="button" id="btnViewMonth" value="<%= ContentProvider.GetString("Select") %>" onclick="selectMonth();"/>
    <br />
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" OnClientClick="exportExcel()" UseSubmitBehavior="False" />
    <div style="clear:left" id="divPaging">
    </div>
    <div id="worktimeTable" class="worktime">
        <%  int daysInMonth = DateTime.DaysInMonth(year, month); %>
            <div class="row">
                <div class="name-cell a1">
                    <%= month %>/<%= year %>
                </div>
                <%
                  for (int j = 1; j <= 32; j++)
                  {
                      %><div class="header a3">
                      <%= j %>
                      </div><%
                  }
                %>
                <div class="header a3" style="width:42px;"></div>
            </div>
    </div>
</asp:Content>
